#include "field.h"
#include <time.h>

int main( int argc, char *argv[] )
{
    int iter;
    
    srand( time(NULL) );
    
    for(iter=0;iter<16;++iter)
    {
        Field *f = field_create("rho",
                                       1 + (rand() % 500),
                                       1 + (rand() % 500));
        Field *g = field_align( "lap", f );
        
        field_set(f,1.0);
        field_info(f,stderr );
        field_laplacian(g,f,0.1,0.1);
        field_write(f,"demo.vtk",0.1,0.15);
        field_delete(g);
        field_delete(f);
    }
	return 0;
}
